package com.lihui.test1;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Repository;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2023/04/21  15:21
 */
@Repository
public class UserRepository {
    @Bean(name = "u1")
    public User getUser() {
        //伪代码
        User user = new User();
        user.setId(1);
        user.setName("张三");
        user.setPassword("123");
        return user;
    }
}
